package cn.dengta.webapp.user.entity.activity;

import java.util.Date;

import cn.dengta.webapp.base.entity.TimeBasedEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

/**
 * 四月亲密度活动
 *
 * @author xy
 * @since 2023-03-25
 */
@Setter
@Getter
@TableName("act_april_intimacy")
public class ActAprilIntimacy extends TimeBasedEntity {

	private static final long serialVersionUID = 1L;

	/** 用户ID(女) */
	Long userId;
	/** 对方用户ID(男) */
	Long toUserId;
	/** 是否升级：1=升级；0=未升级 */
	Integer upgrade;
	/** 升级时间 */
	Date upgradeTime;
	/** 亲密度等级 */
	Integer beforeLevel;
	/** 之前的亲密度值 */
	Integer beforeValue;
	/** 亲密度等级 */
	Integer afterLevel;
	/** 之后的亲密度值 */
	Integer afterValue;
	/** 充值钻数量 */
	Integer rechargeCoin;
	/** 活动钻数量 */
	Integer activityCoin;

	public ActAprilIntimacy init(Long userId, Long toUserId) {
		this.userId = userId;
		this.toUserId = toUserId;
		return this;
	}

	public static final String USER_ID = "user_id";
	public static final String TO_USER_ID = "to_user_id";
	public static final String UPGRADE = "upgrade";
	public static final String UPGRADE_TIME = "upgrade_time";
	public static final String BEFORE_LEVEL = "before_level";
	public static final String BEFORE_VALUE = "before_value";
	public static final String AFTER_LEVEL = "after_level";
	public static final String AFTER_VALUE = "after_value";
	public static final String RECHARGE_COIN = "recharge_coin";
	public static final String ACTIVITY_COIN = "activity_coin";

}
